Skip to main content
Version: v5

2.x Upgrade Guide

Changes from v1 -> v2

Breaking changes

  • We now officially support the @rjsf/material-ui theme. We use a monorepo with Lerna and have published two packages (@rjsf/core and @rjsf/material-ui) with this version number. Note that react-jsonschema-form has been renamed to @rjsf/core (#1642)
  • Combine all themes into a single playground (#1539, #1607, #1623)
  • Remove ui:order console warning about extraneous properties (#1508)
  • Capitalized Yes and No defaults (#1395)
  • Fix id of oneof and anyof select (#1212). The oneof select id is now suffixed by __oneof_select and the anyof select by __anyof_select.
  • React 16+ is now a peer dependency (#1408)
  • We no longer actively support Node version < 8 (#1462)
  • Removed setState, setImmediate, safeRenderCompletion helpers/hacks (#1454, #1720)
  • Inject defaults in arrays (#1499)

Features

  • Add material-ui theme in the main repo (#1420) (note: has not been fully integrated yet -- this will be fully integrated when we publish multiple packages with lerna - #1501)
  • Add extraErrors prop for async validation (#1444)
  • Add support for overriding UnsupportedField (#1660)

Fixes

  • Fix issue with false as formData on radio components (#1438)
  • Security patches (#1458, #1459)
  • Memo components in custom widgets and fields. (#1447)
  • Introduce Form autoComplete attribute and deprecate autocomplete (#1483)
  • Rewrite mergeSchemas to fix schema dependencies merging (#1476)
  • Update arrays correctly when changing index (#1485)
  • Update anyOf schema to correctly update items in an array (#1491)
  • Update schema to re-render when idschema changes (#1493)
  • Make sure BooleanField supports an overridable DescriptionField (#1594)
  • Export typings (#1607)